/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package fileoperate;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;

/**
 *
 * @author Administrator
 */
public class InputsDemo {
    public static void main(String[] args) throws IOException {
          File file=new File("c:\\","text.txt");
          FileReader f = new FileReader(file);
          BufferedReader br = new BufferedReader(f);
          
          String temp = null;
          
          while((temp = br.readLine())!=null){
               System.out.println(temp);
               
          }
    }

}
